package com.jungle.sp.daily.controller;

import com.jungle.sp.daily.service.MyService;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class MyController {

    @Resource
    private  MyService myService;


    @GetMapping("/execute")
    public String executeTask(@RequestParam String context) {
        myService.executeTaskWithContext(context);
        return "Task executed with context: " + context;
    }




}